package cn.zjjd.homeworkserver.service;

import cn.zjjd.homeworkserver.dao.DeviceDao;
import cn.zjjd.homeworkserver.pojo.Device;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author: 小胡
 * @create: 2022/12/19
 * @Description:
 * @FileName: DeviceService
 * @Version: 1.0
 */
@Service
public class DeviceService {
    @Autowired
    DeviceDao deviceDao;
    public int addDevice(Device device){
        deviceDao.save(device);
        return 1;
    }

}
